package org.xb.SimpleProxy;

/**
 * @Author
 * @Description
 * @Date created in 11:07 2023/12/7
 */
// 实际的图像类
class RealImage implements Image {
    private String filename;

    public RealImage(String filename) {
        this.filename = filename;
        loadImageFromDisk();
    }

    private void loadImageFromDisk() {
        System.out.println("Loading image: " + filename);
    }

    @Override
    public void display() {
        System.out.println("Displaying image: " + filename);
    }
}


